package top.luo.sqlSession;

import top.luo.pojo.Configuration;

/**
 * @author luo
 * @date 2021-01-04 21:41
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private final Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }

}
